Probability Magic Explorer ✨

Learn probability with interactive examples and magical visualizations!

1 Three Coin Toss

Three fair coins are tossed simultaneously. Find the probability mass function for number of heads occurred.

Understanding the Problem

We have 3 coins being tossed. Each coin has 2 possible outcomes: Heads (H) or Tails (T).

Possible Outcomes

With 3 coins, there are 2 × 2 × 2 = 8 possible outcomes:

H
H
H

The complete sample space is:

HHH, HHT, HTH, THH, HTT, THT, TTH, TTT

Counting Heads

Let X be the number of heads. We count heads in each outcome:

Outcome Number of Heads (X)
HHH 3
HHT, HTH, THH 2
HTT, THT, TTH 1
TTT 0
Probability Mass Function (PMF)

The PMF gives the probability for each possible value of X:

X (Number of Heads) Number of Outcomes P(X)
0 1 1/8 = 0.125
1 3 3/8 = 0.375
2 3 3/8 = 0.375
3 1 1/8 = 0.125
✨ Show/Hide Full Solution ✨

The probability mass function is:

P(X = x) = ⎧ 0.125 for x = 0
⎪ 0.375 for x = 1
⎨ 0.375 for x = 2
⎪ 0.125 for x = 3
⎩ 0 otherwise

2 Special Die Problem

A six sided die is marked '1' on one face, '3' on two of its faces, and '5' on remaining three faces. The die is thrown twice. If X denotes the total score in two throws, find:

(i) the probability mass function (ii) the cumulative distribution function (iii) P(4 ≤ X < 10) (iv) P(X ≥ 6)

Die Face Probabilities

First, let's understand the probabilities for one die:

?
Face Value Number of Faces Probability
1 1 1/6 ≈ 0.1667
3 2 2/6 ≈ 0.3333
5 3 3/6 = 0.5
Possible Outcomes for Two Throws

When thrown twice, the possible combinations are:

First Throw Second Throw Total (X) Probability
1 1 2 (1/6)×(1/6) = 1/36
1 3 4 (1/6)×(2/6) = 2/36
1 5 6 (1/6)×(3/6) = 3/36
3 1 4 (2/6)×(1/6) = 2/36
3 3 6 (2/6)×(2/6) = 4/36
3 5 8 (2/6)×(3/6) = 6/36
5 1 6 (3/6)×(1/6) = 3/36
5 3 8 (3/6)×(2/6) = 6/36
5 5 10 (3/6)×(3/6) = 9/36
(i) Probability Mass Function

Now we can find the PMF by summing probabilities for each X:

X (Total) Outcomes P(X)
2 (1,1) 1/36 ≈ 0.0278
4 (1,3), (3,1) 4/36 ≈ 0.1111
6 (1,5), (3,3), (5,1) 10/36 ≈ 0.2778
8 (3,5), (5,3) 12/36 ≈ 0.3333
10 (5,5) 9/36 = 0.25
✨ Show/Hide Full Solution ✨
(ii) Cumulative Distribution Function

The CDF F(x) = P(X ≤ x):

X F(X)
X < 2 0
2 ≤ X < 4 1/36 ≈ 0.0278
4 ≤ X < 6 5/36 ≈ 0.1389
6 ≤ X < 8 15/36 ≈ 0.4167
8 ≤ X < 10 27/36 = 0.75
X ≥ 10 36/36 = 1
(iii) P(4 ≤ X < 10)

This is F(9) - F(4) + P(X=4) = F(9) - F(3)

From the CDF table:

F(9) = 27/36 (for 8 ≤ X < 10)

F(3) = 1/36 (for 2 ≤ X < 4)

So P(4 ≤ X < 10) = 27/36 - 1/36 = 26/36 ≈ 0.7222

Alternatively, sum the probabilities for X=4,6,8:

4/36 + 10/36 + 12/36 = 26/36 ≈ 0.7222

(iv) P(X ≥ 6)

This is 1 - F(5) = 1 - 5/36 = 31/36 ≈ 0.8611

Alternatively, sum probabilities for X=6,8,10:

10/36 + 12/36 + 9/36 = 31/36 ≈ 0.8611

3 Girl Child Probability

Find the probability mass function and cumulative distribution function of number of girl child in families with 4 children, assuming equal probabilities for boys and girls.

Understanding the Problem

Each child has equal probability (0.5) of being a girl (G) or boy (B). We're considering families with 4 children.

Possible Outcomes

There are 2⁴ = 16 possible gender sequences for 4 children.

Let X be the number of girls in a family. X can be 0, 1, 2, 3, or 4.

Probability Mass Function

This is a binomial distribution with n=4, p=0.5.

The PMF is given by:

P(X = k) = C(4,k) × (0.5)^k × (0.5)^(4-k) = C(4,k) × (0.5)^4

Where C(4,k) is the number of combinations of 4 children taken k at a time.

X (Girls) Number of Outcomes P(X)
0 1 (BBBB) 1/16 = 0.0625
1 4 (GBBB, BGBB, BBGB, BBBG) 4/16 = 0.25
2 6 (GGBB, GBGB, GBBG, BGGB, BGBG, BBGG) 6/16 = 0.375
3 4 (GGGB, GGBG, GBGG, BGGG) 4/16 = 0.25
4 1 (GGGG) 1/16 = 0.0625
✨ Show/Hide Full Solution ✨
Cumulative Distribution Function

The CDF F(x) = P(X ≤ x):

X F(X)
X < 0 0
0 ≤ X < 1 1/16 = 0.0625
1 ≤ X < 2 5/16 ≈ 0.3125
2 ≤ X < 3 11/16 ≈ 0.6875
3 ≤ X < 4 15/16 ≈ 0.9375
X ≥ 4 16/16 = 1
The probability mass function is:
P(X = x) = ⎧ 0.0625 for x = 0
⎪ 0.25 for x = 1
⎨ 0.375 for x = 2
⎪ 0.25 for x = 3
⎩ 0.0625 for x = 4

4 Discrete Random Variable

Suppose a discrete random variable can only take the values 0, 1, and 2. The probability mass function is defined by:

f(x) = ⎧ (x² + 1)/k, for x = 0, 1, 2
⎩ 0, otherwise

Find (i) the value of k (ii) cumulative distribution function (iii) P(X ≥ 1).

(i) Finding k

For a PMF, the sum of all probabilities must equal 1:

f(0) + f(1) + f(2) = 1
(0² + 1)/k + (1² + 1)/k + (2² + 1)/k = 1
1/k + 2/k + 5/k = 1
8/k = 1
k = 8
(ii) Probability Mass Function

Now we can find each probability with k=8:

x f(x)
0 (0 + 1)/8 = 1/8 = 0.125
1 (1 + 1)/8 = 2/8 = 0.25
2 (4 + 1)/8 = 5/8 = 0.625
✨ Show/Hide Full Solution ✨
(ii) Cumulative Distribution Function

The CDF F(x) = P(X ≤ x):

x F(x)
x < 0 0
0 ≤ x < 1 1/8 = 0.125
1 ≤ x < 2 3/8 = 0.375
x ≥ 2 8/8 = 1
(iii) P(X ≥ 1)

This is 1 - P(X < 1) = 1 - F(0) = 1 - 1/8 = 7/8 = 0.875

Alternatively, sum probabilities for X=1 and X=2:

2/8 + 5/8 = 7/8 = 0.875

5 CDF to PMF

The cumulative distribution function of a discrete random variable is given by:

F(x) = ⎧ 0, -∞ < x < -1
⎪ 0.15, -1 ≤ x < 0
⎪ 0.35, 0 ≤ x < 1
⎪ 0.60, 1 ≤ x < 2
⎪ 0.85, 2 ≤ x < 3
⎩ 1, 3 ≤ x < ∞

Find (i) the probability mass function (ii) P(X < 1) and (iii) P(X ≥ 2).

(i) Finding the PMF

The PMF is the difference in CDF at jump points:

x P(X = x) = F(x) - F(x⁻)
-1 0.15 - 0 = 0.15
0 0.35 - 0.15 = 0.20
1 0.60 - 0.35 = 0.25
2 0.85 - 0.60 = 0.25
3 1.00 - 0.85 = 0.15
✨ Show/Hide Full Solution ✨
(ii) P(X < 1)

This is F(1⁻) = 0.35

(iii) P(X ≥ 2)

This is 1 - F(2⁻) = 1 - 0.60 = 0.40

Alternatively, sum probabilities for X=2 and X=3:

0.25 + 0.15 = 0.40

6 Finding k Value

A random variable X has the following probability mass function:

x 1 2 3 4 5
f(x) 2k² 3k² 2k 3k

Find (i) the value of k (ii) P(2 ≤ X < 5) (iii) P(3 < X)

(i) Finding k

The sum of all probabilities must equal 1:

k² + 2k² + 3k² + 2k + 3k = 1
6k² + 5k - 1 = 0

Solving the quadratic equation:

k = [-5 ± √(25 + 24)] / 12
k = [-5 ± 7] / 12
k = 1/6 or k = -1 (invalid since probability can't be negative)
So k = 1/6 ≈ 0.1667
(ii) P(2 ≤ X < 5)

This includes X=2,3,4:

2k² + 3k² + 2k = 5k² + 2k
= 5(1/36) + 2(1/6) = 5/36 + 12/36 = 17/36 ≈ 0.4722
✨ Show/Hide Full Solution ✨
(iii) P(3 < X)

This includes X=4,5:

2k + 3k = 5k = 5/6 ≈ 0.8333

7 Another CDF Problem

The cumulative distribution function of a discrete random variable is given by:

F(x) = ⎧ 0, for -∞ < x < 0
⎪ 1, for 0 ≤ x < 1
⎪ 2, for 1 ≤ x < 2
⎪ 3, for 1 ≤ x < 2
⎪ 5, for 2 ≤ x < 3
⎪ 9, for 3 ≤ x < 4
⎩ 10, for 4 ≤ x < ∞

Find (i) the probability mass function (ii) P(X < 3) and (iii) P(X ≥ 2).

(i) Finding the PMF

First, note the CDF values should be probabilities between 0 and 1. Assuming they're multiplied by some factor (likely 10):

Divide all values by 10 to get proper probabilities:

x P(X = x) = F(x)/10 - F(x⁻)/10
0 0.1 - 0 = 0.1
1 0.2 - 0.1 = 0.1
2 0.5 - 0.3 = 0.2
3 0.9 - 0.5 = 0.4
4 1.0 - 0.9 = 0.1
✨ Show/Hide Full Solution ✨
(ii) P(X < 3)

This is F(3⁻)/10 = 0.5

(iii) P(X ≥ 2)

This is 1 - F(2⁻)/10 = 1 - 0.3 = 0.7

Alternatively, sum probabilities for X=2,3,4:

0.2 + 0.4 + 0.1 = 0.7

✨ Probability Magic Complete! ✨

You've explored all the exercises with magical visualizations!

Math Magic!
P(X) = Magic!
✨ Amazing! ✨